package icehw.cn.bmicalculate;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_main);
    }

    //启动bmi计算器
    public void bmi(View v){
        Intent intent1 = new Intent(MainActivity.this , bmi.class);
        startActivity(intent1);
    }
    //启动科学计算器
    public void calculate(View v){
        Intent intent2 = new Intent(MainActivity.this , calculate.class);
        startActivity(intent2);
    }
}
